package com.way.druid_web.config;

import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * spring配置
 */
@Configuration
@EnableJpaRepositories(basePackages = { "com.way.druid_web.backend.persistence.repositories" })
@EntityScan(basePackages = { "com.way.druid_web.backend.persistence.domain" })
@ComponentScan(basePackages = { "com.way.druid_web" })
@ServletComponentScan(basePackages = { "com.way.druid_web" })
public class AppConfig {
}
